package com.fg.fgmall.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "分类信", description = "分类信息")
public class Category {

    @Schema(
            title = "分类ID",
            description = "分类ID",
            type = "integer"
    )
    private Integer id;
    @Schema(
            title = "分类名称",
            description = "分类名称",
            type = "String"
    )
    private String name;
    @Schema(
            title = "父分类ID",
            description = "父分类ID",
            type = "Integer"
    )
    private Integer parentId;

}
